package com.icloud.system.boot.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("admin_role_permission_relation")
@ApiModel(value = "AdminRolePermissionRelation对象", description = "角色权限关联")
public class AdminRolePermissionRelation implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("角色ID --> role.id")
    @TableField("admin_role_id")
    private Long adminRoleId;

    @ApiModelProperty("权限ID --> permission.id")
    @TableField("admin_permission_id")
    private Long adminPermissionId;

    @ApiModelProperty("创建时间")
      @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
      @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;


}
